var layer = require('{pub}/layer');
var request = require('request');

return function(e, elem, data){
    var that = this;
    layer.die(e, elem, data,
        renders({
            <dl>
                <dt>确定要删除以下账套？</dt>
                <dd>“<%name%>”</dd>
            </dl>
        }),
        function(self){
            request.del('account/delete', data, {
                200:function(){
                    (that.datagrid || that.self).paging.query('reload');
                }
            }, that.layer)
        }
    )
}